package com.yyjj.zixun.adapter;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yyjj.zixun.R;
import com.yyjj.zixun.activity.QuestionnaireActivity;
import com.yyjj.zixun.entity.BTBNewsEntity;
import com.yyjj.zixun.entity.KuaiXunEntity;

import java.util.ArrayList;

import tech.com.commoncore.utils.FastUtil;


public class KuaiXunAdapter extends BaseQuickAdapter<KuaiXunEntity, BaseViewHolder> {

    public KuaiXunAdapter() {
        super(R.layout.zixun_item_coin_flash, new ArrayList<KuaiXunEntity>());
    }

    @Override
    protected void convert(BaseViewHolder helper, final KuaiXunEntity item) {
//        helper.setText(R.id.tv_time,item.getCreateDate());
        helper.setText(R.id.tv_title,item.getTitle());
        helper.setText(R.id.tv_content,item.getDescription());
//        helper.setText(R.id.tv_time, item.getTime());
//        helper.setText(R.id.tv_title, item.getTitle());
//
//        ImageView view = helper.getView(R.id.img_news);
//        Glide.with(mContext).load(item.getImages()).into(view);
//
//
//        helper.itemView.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                Bundle bundle = new Bundle();
//                bundle.putSerializable("url",item.getContent_url());
//                FastUtil.startActivity(mContext,QuestionnaireActivity.class,bundle);
//            }
//        });

    }
}
